<?php
/*************************************************

点赞记录主模型 - the 
Author: WangHuabin <17-6-1>

*************************************************/
namespace Home\Model;
use Think\Model\RelationModel;
class PraiseModel extends RelationModel {
    //查询单数据
    public function get_one($map){
        $data = $this->where($map)->find();
        return $data;
    }

     //添加
    public function add($data){
        $data =M('Praise')->data($data)->add();
        return $data;
    }

    

    
}